using System;
using System.Collections.Generic;
using System.Text;

namespace Sucrose.Base
{
    public class TaskCategory
    {
        #region instanceVars

        private int id;
        private String name;
        private String namePlural;
        private double gradeWeight;

        #endregion

        #region basicProperties

        public int Id
        {
            get
            {
                return id;
            }
            set
            {
                this.id = value;
            }
        }

        public String Name
        {
            get
            {
                return name;
            }
            set
            {
                this.name = value;
            }
        }

        public String NamePlural
        {
            get
            {
                return namePlural;
            }
            set
            {
                this.namePlural = value;
            }
        }

        public double GradeWeight
        {
            get
            {
                return gradeWeight;
            }
            set
            {
                this.gradeWeight = value;
            }
        }

        #endregion

        #region constructors

        /// <summary>
        /// Creates a new TaskCategory object
        /// </summary>
        /// <param name="id">ID</param>
        /// <param name="name">Display Name</param>
        /// <param name="namePlural">The name, but plural</param>
        /// <param name="gradeWeight">The weight of this grade (0-100)</param>
        public TaskCategory(int id, String name, String namePlural, double gradeWeight)
        {
            this.id = id;
            this.name = name;
            this.namePlural = namePlural;
            this.gradeWeight = gradeWeight;
        }

        /// <summary>
        /// Creates a new TaskCategory object
        /// </summary>
        public TaskCategory()
        {
        }

        #endregion
    }
}
